package com.paranoidmonkey.ode;

public class Heightfield extends Geom{
	public Heightfield(Space space, HeightfieldData data,	boolean placeable){
		handle=AndrODE.dCreateHeightfield(space.handle, data.handle, (placeable)?(255):(0));
	}


	public void setHeightfieldData(HeightfieldData d){
		AndrODE.dGeomHeightfieldSetHeightfieldData(handle,d.handle);
	}

	public HeightfieldData getHeightfieldData(){
		return new HeightfieldData(AndrODE.dGeomHeightfieldGetHeightfieldData(handle));
	}

}
